define(function (require, exports, module) {

    
    WebPDF.UndoRedoPlugin = function (pReaderApp) {
        var _readerApp = pReaderApp,
			_unReDoStack = null,
            _self = this;
        	

        this.getPluginName = function () {
        	return "UndoRedo";
        };
        this.onRegister = function () {

        };
        this.init = function () {
            _unReDoStack = new UnredoStack(_readerApp);
            
        };
        this.unload = function () {
        };
		
		this.getUnReDoStack = function(){
			return 	_unReDoStack;
		}

        this.getReaderApp = function () {
            return _readerApp;
        };
    };

    exports.createPlugin = function (readerApp) {
        var undoRedoPlugin = new WebPDF.UndoRedoPlugin(readerApp);
        return undoRedoPlugin;
    };

});